import request from "@/utils/request.js";

export const  addAskAPI = (askData) => {
    return request.post("/api/ask", askData)
}
export const getAskListAPI = () => {
    return request.get("/api/ask")
}
export const updateAskByIdAPI = (id, askData) => {
    return request.put(`/api/ask/${id}`, askData)
}
export const getAskByIdAPI = (id) => {
    return request.get(`/api/ask/${id}`)
}